package com.atguigu.petstore.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.petstore.shop.entity.ShopCategory;
import com.atguigu.petstore.shop.service.ShopCategoryService;
import com.atguigu.petstore.shop.mapper.ShopCategoryMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lfy
* @description 针对表【shop_category(商城-分类)】的数据库操作Service实现
* @createDate 2023-09-24 16:46:17
*/
@Service
public class ShopCategoryServiceImpl extends ServiceImpl<ShopCategoryMapper, ShopCategory>
    implements ShopCategoryService{


    @Resource
    ShopCategoryMapper shopCategoryMapper;
    @Override
    public List<ShopCategory> getCategoryTree() {


        return shopCategoryMapper.getCategoryTree();
    }
}




